package show.me.the.money.util.exp.standard;

import java.util.List;

import show.me.the.money.util.context.Context;
import show.me.the.money.util.exp.Expression;

@SuppressWarnings("unchecked")
public class STR extends Expression {

	public String run(List lsExp, Context ctx) {
		try {
			return String.valueOf(lsExp.get(1));
		} 
		catch (Exception e) {
			logger.fatal("run JSONException:", e);
		}
		return null;
	}

	public String toString(List lsExp, Context ctx) {
		return "'" + lsExp.get(1) + "'";
	}

}
